package interceptor;

import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.MethodFilterInterceptor;

/**
 * @author dingyuanwei
 * @version 建立時間：Dec 24, 20101:30:57 PM
 * 類別說明:
 */
public class MethodInterceptor extends MethodFilterInterceptor{

	@Override
	protected String doIntercept(ActionInvocation ai) throws Exception {
		System.out.println("拦截直了作用");
		String result = ai.invoke();
		System.out.println("Action的方法之后"+result);
		return result;
	}

}
